export default {
  beforeMount: (res, value) => {
    const oldValue = value.value;
    res._directiveContext = { oldValue };
    console.log(res, "res");
  },

  beforeUpdate: (res, value, oldValue) => {
    const { oldValue } = res._directiveContext;
    console.log(value.value, "value", oldValue);
  },
};
